home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / AtomMgr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  1.4 KB  |  60 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2
  7. */ 
  8. /*   $RCSfile: AtomMgr.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:33:59 $ */
  9. /*
  10. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  11. #ifndef _XmAtomMgr_h
  12. #define _XmAtomMgr_h
  13.  
  14. #include <Xm/Xm.h>
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20. #define XM_ATOM_CACHE
  21.  
  22. #ifdef XM_ATOM_CACHE
  23. /********    Public Function Declarations    ********/
  24. #ifdef _NO_PROTO
  25.  
  26. extern Atom XmInternAtom() ;
  27. extern String XmGetAtomName() ;
  28.  
  29. #else
  30.  
  31. extern Atom XmInternAtom( 
  32.                         Display *display,
  33.                         String name,
  34. #if NeedWidePrototypes
  35.                         int only_if_exists) ;
  36. #else
  37.                         Boolean only_if_exists) ;
  38. #endif /* NeedWidePrototypes */
  39. extern String XmGetAtomName( 
  40.                         Display *display,
  41.                         Atom atom) ;
  42.  
  43. #endif /* _NO_PROTO */
  44. /********    End Public Function Declarations    ********/
  45. #else /* XM_ATOM_CACHE */
  46. #define XmInternAtom(display, name, only_if_exists) \
  47.         XInternAtom(display, name, only_if_exists)
  48. #define XmGetAtomName(display, atom) \
  49.         XGetAtomName(display, atom)
  50. #endif /* XM_ATOM_CACHE */
  51.  
  52. #ifdef __cplusplus
  53. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  54. #endif
  55.  
  56. #define XmNameToAtom(display, atom) \
  57.         XmGetAtomName(display, atom)
  58.  
  59. #endif /* _XmAtomMgr_h */
  60.